{% extends "layouts/base.html" %} {% block title %} Page User {% endblock %}

<!-- Specific Page CSS goes HERE  -->
{% block stylesheets %}{% endblock stylesheets %} {% block content %}
<div class="row">
  <div class="col-md-10 col-sm-12">
    <div class="card">
      <div class="card-header card-header-primary">
        <h4 class="card-title">新建工单</h4>
      </div>
      <div class="card-body">
        <form action="/new_task" method="post" enctype="multipart/form-data">
          {% csrf_token%}
          <div class="row">
            <div class="col-md-12">
              <label class="bmd-label-floating">工单名称</label>
              <input
                type="text"
                name="title"
                class="form-control"
                maxlength="200"
                required
                id="id_title"
              />
            </div>
          </div>
          <div class="row">
            <div class="col-md-12">
              <label>工单描述</label>
              <textarea
                name="description"
                rows="5"
                class="form-control"
                required
                id="id_description"
              ></textarea>
            </div>
          </div>
          <div class="row">
            <div class="col-md-12">
              <label class="bmd-label-floating">训练数据</label>
              <input
                type="file"
                name="train_data_file"
                class="form-control"
                required
                id="id_train_file"
              />
            </div>
          </div>
          <div class="row">
            <div class="col-md-12">
              <label class="bmd-label-floating">测试数据</label>
              <input
                type="file"
                name="gold_data_file"
                class="form-control"
                required
                id="id_gold_data_file"
              />
            </div>
          </div>
          <button type="submit" class="btn btn-primary pull-right form-control">
            提交工单
          </button>
          {% comment %}
          <div class="clearfix"></div>
          {% endcomment %}
        </form>
      </div>
    </div>
  </div>
</div>
{% endblock content %}

<!-- Specific Page JS goes HERE  -->
{% block javascripts %}{% endblock javascripts %}
